|
LOAD EFFECT
This command will load an FX file.
LOAD EFFECT Filename, Effect Number, Texture Flag, DoNotGenerateExtraData
LOAD EFFECT Filename, Effect Number, Texture Flag
Filename
String
The FX filename must point to an FX file that is compatible with the DX9 effect framework and would typically use the extension ".fx".
Effect Number
Integer
The FX can be stored and referred to by a number that identifies it. You can use this number to apply an effect to an object previously loaded.
Texture Flag
Integer
If the Texture Flag is set to zero, the effect will use the textures already mapped to the model, and a value of one will discard the current textures and load the textures specified in the FX file. Typically, effects rely on the specified model and text
DoNotGenerateExtraData
Integer
Set this value to one to avoid generating tangent and binormal data, and set the value to two to additionally strip out any secondary UV data, sometimes needed to allow a complex shader to create a valid declaration.
This command does not return a value.
backdrop off : cls : sync on : sync rate 0 : hide mouse:cls 0
cd "fx\bubble"
load effect "bubble.fx",1,1
load object "sphere.x",1
if effect exist(1)=1 then set object effect 1,1
position object 1,0,0,0
SET EFFECT TRANSPOSE 1,0
while mouseclick()=0:sync:endwhile
while mouseclick()=1:endwhile
delete object 1
delete effect 1
end
BASIC3D Commands Menu
Index
|